<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('admin/task/index')}">列表</a></li>
			<li class="active"><a>添加</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('admin/task/add')}">
			<div class="form-group">
				<label for="langId" class="col-sm-2 control-label"><span class="form-required">*</span>语言</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="lang_id" id="langId">
						<foreach name="countryData" item="lang">
							<option value="{$lang['id']}">{$lang['name']}</option>
						</foreach>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label for="task_group" class="col-sm-2 control-label"><span class="form-required">*</span>分组名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" name="task_group" id="task_group" class="form-control" />
				</div>
			</div>

			<div class="form-group">
				<label for="task_group_cn" class="col-sm-2 control-label"><span class="form-required">*</span>分组中文名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" name="task_group_cn" id="task_group_cn" class="form-control" />
				</div>
			</div>

			<div class="form-group">
				<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务类型</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="task_type" id="task_type">
						<foreach name="taskTypeData" item="type">
							<option value="{$type['type']}">{$type['name']}</option>
						</foreach>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务标题</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" name="title" id="title" class="form-control" />
				</div>
			</div>

			<div class="form-group">
				<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务说明</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" name="task_intro" id="task_intro" class="form-control" />
				</div>
			</div>

			<div class="form-group">
				<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务说明(中文)</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" name="task_intro_cn" id="task_intro_cn" class="form-control" />
				</div>
			</div>

			<div class="form-group">
				<label for="complete_count" class="col-sm-2 control-label"><span class="form-required">*</span>任务条件</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" name="complete_count" id="complete_count" class="form-control" />
				</div>
			</div>

			<div class="form-group">
				<label for="award" class="col-sm-2 control-label"><span class="form-required">*</span>任务奖励</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" name="award" id="award" class="form-control" style="width: 90%;display: inline" />钻石
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>是否开启</label>
				<div class="col-md-6 col-sm-10">
					<select name="status" id="status" class="form-control">
						<option value="1">是</option>
						<option value="0">否</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script src="__STATIC__/layui/layui.js"></script>
</body>
</html>